<h1>Editing invitation</h1>

<%= error_messages_for :invitation %>

<% form_for([@group,@invitation]) do |f| %>
  
  <p>
    <b>Group</b><br />
    <%=h @group.name %>
  </p>

  <p>
    <b>Email</b><br />
    <%= f.text_field :email %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Back', @group %>